package com.baizhi.ncc.service;


import com.baizhi.ncc.entity.Admin;
import org.springframework.web.bind.annotation.ResponseBody;

import java.io.IOException;
import java.util.Map;

public interface AdminService {
    //void添加管理员
    void insert(Admin admin);
    //生成验证码
    Map<String,String> getImageCodes() throws IOException;
    //登录检查
    Map<String,String> login(Admin admin,String token);
    //获取用户信息
    Admin getUserInfo(String token);
    //退出
    void logout(String token);
}
